import random

def promo_code_generator(numChar):
    code_chars = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ"
    code = ''
    for i in range(0,numChar):
        start_slice = random.randint(0, len(code_chars)-1)
        code += code_chars[start_slice:start_slice+1]
    return code

print(promo_code_generator(5))